<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableProGoods extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
      //创建表   pro_goods是你的表名        
        Schema::create('pro_goods', function (Blueprint $table) {            
            //increments  string  timestamps 类型            
            $table->increments('id');            
            $table->string('name');            
            $table->string('cate_id');            
            $table->string('pic');
            $table->string('descr');            
            $table->string('num');            
            $table->string('color');
            $table->string('size');            
            $table->string('price');            
           $table->timestamp('up_at')->nullable();
        });   
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //删除表        
        Schema::drop('pro_goods'); 
    }
}
